//
//  MineFooterView.m
//  DS_PJ_01
//
//  Created by 宋畅 on 2016/12/17.
//  Copyright © 2016年 zhiqiyun. All rights reserved.
//

#import "MineFooterView.h"

@interface MineFooterView ()

@property(nonatomic,strong)UIButton *clockOutButton;

@property(nonatomic,strong)UIButton *startWorkingButton;

@end

@implementation MineFooterView

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.frame = CGRectMake(0, 0, sScreenWith, 80);
        self.backgroundColor = [UIColor whiteColor];
        [self _initVars];
    }
    return self;
}


-(void)_initVars
{
    self.clockOutButton.frame = CGRectMake(20, 10, sScreenWith/2 -20, 60);
    self.startWorkingButton.frame = CGRectMake(sScreenWith/2 , 10, sScreenWith/2-20, 60);

    
}


#pragma mark ------ action ------
-(void)clockOutAction
{
    
}

-(void)startWorkingAction
{
    
}


#pragma mark -------懒加载-------
-(UIButton *)clockOutButton
{
    if (!_clockOutButton) {
        _clockOutButton = [UIButton setButton_style_one];
        [_clockOutButton setTitle:NSLocalizedString(@"Clock Out", @"下班") forState:0];
        [_clockOutButton setBackgroundColor:[UIColor colorWithHexString:@"#E0335C"]];
        [_clockOutButton addTarget:self action:@selector(clockOutAction) forControlEvents:UIControlEventTouchUpInside];

        [self addSubview:_clockOutButton];

    }
    
    return _clockOutButton;
}

-(UIButton *)startWorkingButton
{
    if (!_startWorkingButton) {
        _startWorkingButton = [UIButton setButton_style_one];
        [_startWorkingButton setTitle:NSLocalizedString(@"Start Working", @"上班") forState:0];
        [_startWorkingButton addTarget:self action:@selector(startWorkingAction) forControlEvents:UIControlEventTouchUpInside];

        [self addSubview:_startWorkingButton];
        
    }
    
    return _startWorkingButton;
}




@end
